package o;

import androidx.annotation.NonNull;
import androidx.annotation.RestrictTo;
import androidx.annotation.RestrictTo.d;
import java.util.HashMap;
import java.util.Map.Entry;

@RestrictTo({d.ॱ})
public class dj<K, V> extends dh<K, V> {
    private HashMap<K, d<K, V>> ॱ = new HashMap();

    protected d<K, V> ˎ(K k) {
        return (d) this.ॱ.get(k);
    }

    public V ˏ(@NonNull K k, @NonNull V v) {
        d ˎ = ˎ(k);
        if (ˎ != null) {
            return ˎ.ॱ;
        }
        this.ॱ.put(k, ˋ(k, v));
        return null;
    }

    public V ˊ(@NonNull K k) {
        V ˊ = super.ˊ(k);
        this.ॱ.remove(k);
        return ˊ;
    }

    public boolean ˏ(K k) {
        return this.ॱ.containsKey(k);
    }

    public Entry<K, V> ˋ(K k) {
        if (ˏ(k)) {
            return ((d) this.ॱ.get(k)).ˋ;
        }
        return null;
    }
}
